package com.zzy.system.domain;

import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zzy.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 功能描述:
 *
 * @author zhouzhiyong
 * @date 2025/1/5 23:48
 */
@Data
public class OutStockSheetOrder extends BaseEntity {
    //主键 自增
    @TableId(type = IdType.AUTO)
    private Integer outStockSheetOrderId;
    private static final long serialVersionUID = 1L;
    // 出库单id
    @JSONField(name = "out_stock_sheet_id")
    private String outStockSheetId;

    // 建单日期
    @JSONField(name = "create_date")
    private String createDate;

    // 出库日期，未出库前该字段为空
    @JSONField(name = "out_stock_date")
    private String outStockDate;

    // 商户id（站点id）out_stock_sheet_type为2时，该参数表示分仓站点id
    @JSONField(name = "customer_id")
    private String customerId;

    // 商户名（站点名）out_stogck_sheet_type为2时，该参数表示分仓站点名
    @JSONField(name = "customer_name")
    private String customerName;

    // 出库单状态 1:待出库/2:已出库/3:已删除
    @JSONField(name = "status")
    private Integer status;

    // 出库单类型 1:PL单同步生成/2:流转单(LK单)同步生成/3:自建单
    @JSONField(name = "out_stock_sheet_type")
    private int outStockSheetType;

    // 修改时间
    @JSONField(name = "modify_time")
    private String guanmaiModifyTime;

    @JSONField(name = "details")
    @TableField(exist = false)
    private List<OutStockSheetOrderDetail> details;

    //推送订单失败次数
    private Integer pushErrNum;
    //是否推送成功 0失败 1 成功
    private Integer isPush;

    private String outOrderId;

    private Date pushDate;
}
